<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<f:view contentType="text/html" encoding="UTF-8">
	<h:head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>Nex Soluções</title>
		<link href="recursos/css/login.css" rel="stylesheet" type="text/css" />
		<link rel="shortcut icon" type="image/x-icon"
			href="${facesContext.externalContext.requestContextPath}/paginas/recursos/imagens/layout/favicon.ico" />
	</h:head>


	<h:body id="corpo">
		<header></header>
		<section id="container">
			<img src="recursos/imagens/layout/Nexlogo.png" alt="Nex Soluções" />
			<form action="/sunrise/login" method="post">
				<div
					style="color: red; font-family: Arial; font-size: 8pt; font-weight: bold;"
					align="center">
					<h:outputText value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
				</div>
				<ul>
					<li><input type="text" name="j_username" placeholder="Login"
						id="username" /></li>
					<li><input type="password" name="j_password"
						placeholder="Senha" id="password" /></li>
				</ul>
				<div class="btn">
					<input type="submit" class="loginButton" value="Login" />
				</div>
				<div>
					<a href="#openModal" class="forget">Esqueceu sua senha?</a>
				</div>
			</form>

			<div id="openModal" class="modalDialog">
				<div>
					<h:form id="formRecuperarSenha" prependId="false">
						<a href="#close" title="Close" class="close">X</a>
						<h2>Digite seu e-mail para receber as instruções e criar uma
							nova senha</h2>

						<p:inputText value="#{reiniciarSenhaBean.login}" required="true" requiredMessage="#{msg.emailLoginObrigatorio}"
							placeholder="#{rsc.wm_loginEmail}" styleClass="recuperarSenha"
							id="txtRecuperarSenha" />

						<div class="btnNovaSenha">
							<p:commandButton oncomplete="#close" process="@this"
								actionListener="#{reiniciarSenhaBean.recuperarSenha}"
								styleClass="loginButton" value="#{rsc.label_recuperarSenha}" />
						</div>
					</h:form>
				</div>
			</div>
		</section>

	</h:body>
</f:view>
</html>